package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the HOSP_WORK_PATIENT_ERX database table.
 * 
 */
@Entity
@Table(name="HOSP_WORK_PATIENT_ERX")
@NamedQuery(name="HospWorkPatientErx.findAll", query="SELECT h FROM HospWorkPatientErx h")
public class HospWorkPatientErx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private long prescriptionnum;

	@Column(name="DOCTOR_ADVICE_DO")
	private String doctorAdviceDo;

	@Column(name="DOCTOR_NAME")
	private String doctorName;

	@Column(name="OFFICE_NAME")
	private String officeName;

	@Column(name="OUT_TOTAL")
	private BigDecimal outTotal;

	@Column(name="PATIENT_AGE")
	private String patientAge;

	@Column(name="PATIENT_NAME")
	private String patientName;

	@Column(name="PATIENT_REGISTRATION_ID")
	private String patientRegistrationId;

	@Column(name="PATIENT_SEX")
	private String patientSex;

	private String status;

	@Temporal(TemporalType.DATE)
	@Column(name="\"TIME\"")
	private Date time;

	@Column(name="\"TYPE\"")
	private String type;

	public long getPrescriptionnum() {
		return prescriptionnum;
	}

	public void setPrescriptionnum(long prescriptionnum) {
		this.prescriptionnum = prescriptionnum;
	}

	public String getDoctorAdviceDo() {
		return doctorAdviceDo;
	}

	public void setDoctorAdviceDo(String doctorAdviceDo) {
		this.doctorAdviceDo = doctorAdviceDo;
	}

	public String getDoctorName() {
		return doctorName;
	}

	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public BigDecimal getOutTotal() {
		return outTotal;
	}

	public void setOutTotal(BigDecimal outTotal) {
		this.outTotal = outTotal;
	}

	public String getPatientAge() {
		return patientAge;
	}

	public void setPatientAge(String patientAge) {
		this.patientAge = patientAge;
	}

	public String getPatientName() {
		return patientName;
	}

	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}

	public String getPatientRegistrationId() {
		return patientRegistrationId;
	}

	public void setPatientRegistrationId(String patientRegistrationId) {
		this.patientRegistrationId = patientRegistrationId;
	}

	public String getPatientSex() {
		return patientSex;
	}

	public void setPatientSex(String patientSex) {
		this.patientSex = patientSex;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public HospWorkPatientErx() {
		super();
	}

	@Override
	public String toString() {
		return "HospWorkPatientErx [prescriptionnum=" + prescriptionnum + ", doctorAdviceDo=" + doctorAdviceDo
				+ ", doctorName=" + doctorName + ", officeName=" + officeName + ", outTotal=" + outTotal
				+ ", patientAge=" + patientAge + ", patientName=" + patientName + ", patientRegistrationId="
				+ patientRegistrationId + ", patientSex=" + patientSex + ", status=" + status + ", time=" + time
				+ ", type=" + type + "]";
	}

	public HospWorkPatientErx(long prescriptionnum, String doctorAdviceDo, String doctorName, String officeName,
			BigDecimal outTotal, String patientAge, String patientName, String patientRegistrationId, String patientSex,
			String status, Date time, String type) {
		super();
		this.prescriptionnum = prescriptionnum;
		this.doctorAdviceDo = doctorAdviceDo;
		this.doctorName = doctorName;
		this.officeName = officeName;
		this.outTotal = outTotal;
		this.patientAge = patientAge;
		this.patientName = patientName;
		this.patientRegistrationId = patientRegistrationId;
		this.patientSex = patientSex;
		this.status = status;
		this.time = time;
		this.type = type;
	}

	/*//bi-directional many-to-one association to OutErxChargeDetail
	@OneToMany(mappedBy="hospWorkPatientErx")
	private List<OutErxChargeDetail> outErxChargeDetails;

	//bi-directional many-to-one association to OutMedicalProjectChargeDet
	@OneToMany(mappedBy="hospWorkPatientErx")
	private List<OutMedicalProjectChargeDet> outMedicalProjectChargeDets;

	//bi-directional many-to-one association to PatientDoctorAdvice
	@OneToMany(mappedBy="hospWorkPatientErx")
	private List<PatientDoctorAdvice> patientDoctorAdvices;*/

	

}